import sys

def check_character_in_file(char, filename):
    try:
        with open(filename, 'r', encoding='utf-8') as file:
            content = file.read()
            if char in content:
                return "存在"
            else:
                return "不存在"
    except FileNotFoundError:
        return "文件不存在"
    except Exception as e:
        return str(e)

if __name__ == "__main__":
    if len(sys.argv) < 2:
        print("请在命令行输入一个字符作为参数。")
    else:
        character = sys.argv[1]
        result = check_character_in_file(character, "jp.txt")
        print(f"字符'{character}'在jp.txt中是否存在：{result}")

